package com.leoman.user.entity;

import com.leoman.creator.entity.Creator;
import com.leoman.entity.BaseEntity;

import javax.persistence.*;

/**
 * Created by Administrator on 2016/6/12.
 */
@Table(name = "t_user_info")
@Entity
public class UserInfo extends BaseEntity {

    @OneToOne
    @JoinColumn(name = "user_id")
    private UserLogin userLogin;

    @Column(name = "mobile")
    private String mobile;

    @Column(name = "password")
    private String password;

    @Column(name = "nickname")
    private String nickname = "";

    @Column(name = "weixin_nickname")
    private String weixinNickname = "";

    @Column(name = "weibo_nickname")
    private String weiboNickname = "";

    @Column(name = "qq_nickname")
    private String qqNickname = "";

    @Column(name = "gender")
    private Integer gender = 0;

    @Column(name = "avater")
    private String avater = "";

    @Column(name = "suolue")
    private String suolue;

    @Column(name = "suolue2")
    private String suolue2;

    @Column(name = "status")
    private Integer status = 0;

    @Column(name = "type")
    private Integer type = 0;

    @Column(name = "level")
    private Integer level = 0;

    @Column(name = "funs")
    private Long funs = 0L;

    @Column(name = "focus")
    private Long focus = 0L;

    @Column(name = "posts")
    private Integer posts = 0;

    @Column(name = "praises")
    private Long praises = 0L;

    @Column(name = "coin")
    private Long coin = 0L;

    @Column(name = "integral")
    private Long integral = 0L;

    @Column(name = "all_integral")
    private Long allIntegral = 0L;

    @Column(name = "is_creator")
    private Integer isCreator = 0;

    @Column(name = "registration_id")
    private String registrationId;

    @OneToOne
    @JoinColumn(name = "creator_id")
    private Creator creator;

    @Column(name = "weixin")
    private String weixin;

    @Column(name = "weibo")
    private String weibo;

    @Column(name = "qq")
    private String qq;

    @Column(name = "head_qq")
    private String headQQ;

    @Column(name = "head_weibo")
    private String headWeiBo;

    @Column(name = "head_weixin")
    private String headWeiXin;

    @Transient
    private Integer num = 0;

    @Transient
    private Integer isAttention;

    @Transient
    private Integer playType;

    @Transient
    private Integer isSign;

    @Transient
    private Integer days;

    @Transient
    private Long levelUpIntegral;

    @Transient
    private Integer isCheck;

    public UserLogin getUserLogin() {
        return userLogin;
    }

    public void setUserLogin(UserLogin userLogin) {
        this.userLogin = userLogin;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getAvater() {
        return avater;
    }

    public void setAvater(String avater) {
        this.avater = avater;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getFuns() {
        return funs;
    }

    public void setFuns(Long funs) {
        this.funs = funs;
    }

    public Long getFocus() {
        return focus;
    }

    public void setFocus(Long focus) {
        this.focus = focus;
    }

    public Integer getPosts() {
        return posts;
    }

    public void setPosts(Integer posts) {
        this.posts = posts;
    }

    public Long getPraises() {
        return praises;
    }

    public void setPraises(Long praises) {
        this.praises = praises;
    }

    public Long getCoin() {
        return coin;
    }

    public void setCoin(Long coin) {
        this.coin = coin;
    }

    public Long getIntegral() {
        return integral;
    }

    public void setIntegral(Long integral) {
        this.integral = integral;
    }

    public Long getAllIntegral() {
        return allIntegral;
    }

    public void setAllIntegral(Long allIntegral) {
        this.allIntegral = allIntegral;
    }

    public Integer getIsCreator() {
        return isCreator;
    }

    public void setIsCreator(Integer isCreator) {
        this.isCreator = isCreator;
    }

    public Creator getCreator() {
        return creator;
    }

    public void setCreator(Creator creator) {
        this.creator = creator;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getWeibo() {
        return weibo;
    }

    public void setWeibo(String weibo) {
        this.weibo = weibo;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getIsAttention() {
        return isAttention;
    }

    public void setIsAttention(Integer isAttention) {
        this.isAttention = isAttention;
    }

    public String getSuolue() {
        return suolue;
    }

    public void setSuolue(String suolue) {
        this.suolue = suolue;
    }

    public String getSuolue2() {
        return suolue2;
    }

    public void setSuolue2(String suolue2) {
        this.suolue2 = suolue2;
    }

    public Integer getPlayType() {
        return playType;
    }

    public void setPlayType(Integer playType) {
        this.playType = playType;
    }

    public Integer getIsSign() {
        return isSign;
    }

    public void setIsSign(Integer isSign) {
        this.isSign = isSign;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWeixinNickname() {
        return weixinNickname;
    }

    public void setWeixinNickname(String weixinNickname) {
        this.weixinNickname = weixinNickname;
    }

    public String getWeiboNickname() {
        return weiboNickname;
    }

    public void setWeiboNickname(String weiboNickname) {
        this.weiboNickname = weiboNickname;
    }

    public String getQqNickname() {
        return qqNickname;
    }

    public void setQqNickname(String qqNickname) {
        this.qqNickname = qqNickname;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public Long getMoreIntegral() {
        return levelUpIntegral;
    }

    public void setLevelUpIntegral(Long levelUpIntegral) {
        this.levelUpIntegral = levelUpIntegral;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRegistrationId() {
        return registrationId;
    }

    public void setRegistrationId(String registrationId) {
        this.registrationId = registrationId;
    }

    public String getHeadQQ() {
        return headQQ;
    }

    public void setHeadQQ(String headQQ) {
        this.headQQ = headQQ;
    }

    public String getHeadWeiBo() {
        return headWeiBo;
    }

    public void setHeadWeiBo(String headWeiBo) {
        this.headWeiBo = headWeiBo;
    }

    public String getHeadWeiXin() {
        return headWeiXin;
    }

    public void setHeadWeiXin(String headWeiXin) {
        this.headWeiXin = headWeiXin;
    }

    public Long getLevelUpIntegral() {
        return levelUpIntegral;
    }

    public Integer getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(Integer isCheck) {
        this.isCheck = isCheck;
    }
}
